import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import login from '@/components/login'
import tou from '@/components/tou'
import zhuce from '@/components/zhuce'
import order from '@/components/order'
import car from '@/components/car'
import goods from '@/components/goods'
import goodsList from '@/components/goodsList'
import goodsItem from '@/components/goodsItem'
import goodsCart from '@/components/goodsCart'
import goodsOrder from '@/components/goodsOrder'
import hotel from '@/components/hotel'
import bed from '@/components/bed'
import tickets from '@/components/tickets'
import myInfo from '@/components/myInfo'
import goodsOrderItem from '@/components/goodsOrderItem'


import {install} from "element-ui";


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/tou',
      name: 'tou',
      component: tou
    },
    {
      path: '/zhuce',
      name: 'zhuce',
      component: zhuce
    },
    {
      path: '/order',
      name: 'order',
      component: order
    },
    {
      path: '/car',
      name: 'car',
      component: car
    },
    {
      path:'/goods',
      name:'goods',
      component:goods
    },
    {
      path:'/goodsList',
      name:'goodsList',
      component:goodsList
    },
    {
      path:'/goodsItem',
      name:'goodsItem',
      component:goodsItem
    },
    {
      path:'/goodsCart',
      name:'goodsCart',
      component:goodsCart
    },
    {
      path:'/goodsOrder',
      name:'goodsOrder',
      component:goodsOrder
    },
    {
      path:'/hotel',
      name:'hotel',
      component:hotel
    },
    {
      path:'/bed',
      name:'bed',
      component:bed
    },
    {
      path:'/tickets',
      name:'tickets',
      component:tickets
    },
    {
      path:'/hotelorder',
      name:'hotelorder',
      component:()=>import("@/components/hotelorder"),
    },
    {
      path:'/pay',
      name:'pay',
      component:()=>import("@/components/pay")
    },
    {
      path:'/myInfo',
      name:'myInfo',
      component:myInfo
    },
    {
      path:'/goodsOrderItem',
      name:'goodsOrderItem',
      component:goodsOrderItem
    },
  ]
})
